/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.vast.system.utils;

/**
 * 常量
 *
 * @author Mark sunlightcs@gmail.com
 */
public class Constant {
	/**
     * 超级管理员ID
     */
	public static final long SUPER_ADMIN = 1L;
    public static final String SUPER_ADMIN_ALIAS = "admin";

	/**
     * 管理员ID
     */
	public static final long SYSTEM_MANAGER_ID = 8L;
    public static final String SYSTEM_MANAGER_ALIAS = "manager";

    /**
     * 业务员
     */
    public static final long COMPANY_EMPLOYEE_ID = 9L;
    public static final String COMPANY_EMPLOYEE_ALIAS = "employee";

    /**
     * 合伙人
     */
    public static final long PARTNER_ID = 13L;
    public static final String PARTNER_ALIAS = "client";

	/**
     * 企业管理员ID
     */
	public static final long COMPANY_MANAGER_ID = 14L;
    public static final String COMPANY_ADMIN_ALIAS = "company_admin";

    /**
     * 企业采集员
     */
    public static final long COMPANY_SALESMAN_ID = 15L;
    public static final String COMPANY_SALESMAN_ALIAS = "company_salesman";



    /** 数据权限过滤 */
	public static final String SQL_FILTER = "sql_filter";
    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     *  升序
     */
    public static final String ASC = "asc";

	/**
	 * 菜单类型
	 */
    public enum MenuType {
        /**
         * 目录
         */
    	CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
    /**
     * 定时任务状态
     */
    public enum ScheduleStatus {
        /**
         * 正常
         */
    	NORMAL(0),
        /**
         * 暂停
         */
    	PAUSE(1);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }
        
        public int getValue() {
            return value;
        }
    }

    /**
     * 云服务商
     */
    public enum CloudService {
        /**
         * 七牛云
         */
        QINIU(1),
        /**
         * 阿里云
         */
        ALIYUN(2),
        /**
         * 腾讯云
         */
        QCLOUD(3);

        private int value;

        CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}
